<template>
    <div class='title flex'
         :class="[color]"
         :style="{left,top}">
        <div class="icon">
            <div class="inner"></div>
        </div>
        <span>{{title}}</span>
        <slot></slot>
    </div>
</template>

<script>
export default {
    props: {
        title: {
            default: '按产业分析',
        },
        left: {
            default: '15px',
        },
        top: {
            default: '80px',
        },
        color: {
            default: 'blue',
        },
    },
    components: {},
    data() {
        return {}
    },
    computed: {},
    methods: {},
    created() {},
    mounted() {},
}
</script>
<style lang='less' scoped>
.title {
    position: absolute;
    &.blue {
        .icon {
            position: relative;
            width: 13px;
            height: 13px;
            border-radius: 50%;
            background-color: rgba(4, 43, 92, 0.6);
            .inner {
                width: 5px;
                height: 5px;
                border-radius: 50%;
                background-color: #00aaff;
                position: absolute;
                left: 4px;
                top: 4px;
            }
        }
    }
    &.orange {
        .icon {
            position: relative;
            width: 13px;
            height: 13px;
            border-radius: 50%;
            background-color: rgba(255, 170, 0, 0.2);
            .inner {
                width: 5px;
                height: 5px;
                border-radius: 50%;
                background-color: #ffaa00;
                position: absolute;
                left: 4px;
                top: 4px;
            }
        }
    }
    &.red {
        .icon {
            width: 13px;
            height: 13px;
            border-radius: 50%;
            background-color: rgba(255, 76, 88, 0.2);
            .inner {
                width: 5px;
                height: 5px;
                border-radius: 50%;
                background-color: #ff4c58;
                position: absolute;
                left: 4px;
                top: 5px;
            }
        }
    }

    span {
        font-size: 14px;
        text-shadow: 0px 0px 5px #69aaec;
        margin-left: 8px;
    }
}
</style>